<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div id="containter"></div>
		<script type="text/javascript">
		   //创建方法
			var getid = function(id) {
				return document.getElementById(id)
			}
			var addEvent = function(obj,event,fun){
				if (obj.addEventListener) {
					obj.addEventListener(event,fun,false);
				}else if(obj.attachEvent()){
					obj.attachEvent("on"+event,fun);
				}
			}
		</script>
	</body>
</html>
